package com.hzqx.syndata;

import com.hzqx.syndata.aop.service.TestAopService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan(basePackages = {"com.hzqx.syndata.project.mapper","com.hzqx.syndata.falsedemo.mapper"})
@EnableSwagger2
@EnableCaching
@EnableScheduling
public class SynDatabaseApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SynDatabaseApplication.class, args);
        TestAopService service = context.getBean(TestAopService.class);
        System.out.println(service.getClass()+"------");
    }

}
